/*
 * @Autor: Ruohong Yu
 * @Date: 2022-09-08 15:48:37
 * @Description: file content
 * @FilePath: \ebook\src\utils\utils.js
 */
export function px2rem (px) {
  const ratio = 375 / 10
  return px / ratio
}

export function realPx (px) {
  const maxWidth = window.innerWidth > 500 ? 500 : window.innerWidth
  return px * (maxWidth / 375)
}
